package com.wwl.cms.utils.designModeTest.state;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/27 16:51
 * @description:
 */
public class NoRaffleState extends State {
    RaffleActivity activity;

    public NoRaffleState(RaffleActivity activity){
        this.activity = activity;
    }
    @Override
    public void deductMoney(){
        System.out.println("扣除50积分成功，你可以抽奖了");
        activity.setState(activity.getCanRaffleState());
    }
    @Override
    public boolean raffle(){
        System.out.println("扣了积分才能抽奖呦！");
        return false;
    }

    @Override
    public void dispensePrize(){
        System.out.println("不能发放奖品！");
    }
}
